package org.imooc.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import org.imooc.bean.Ad;
import org.springframework.web.multipart.MultipartFile;

/**
 * Dto数据传输对象
 * 对应接口数据
 * 对应controller和页面 或者controller和service
 */
@JsonInclude(Include.NON_NULL)
public class AdDto extends Ad{
//	private String title;
    private String img;
//    private String link;
    private MultipartFile imgFile;
    
//	public String getTitle() {
//		return title;
//	}
//	public void setTitle(String title) {
//		this.title = title;
//	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
//	public String getLink() {
//		return link;
//	}
//	public void setLink(String link) {
//		this.link = link;
//	}

	public MultipartFile getImgFile() {
		return imgFile;
	}

	public void setImgFile(MultipartFile imgFile) {
		this.imgFile = imgFile;
	}
}
